<div style="height:20px;"></div>
  <%- model_class = PEntry -%>
        <% @p_entries.each do |p_entry| %>
    <div class="col-lg-12 col-md-12 col-xs-12">
          <%if p_entry.status > 60 %>
                <%  @stat="success" %>
          <%else%>
            <%if p_entry.status > 40%>
                <%  @stat="warning"%>
            <%else%>
                <%  @stat="danger"%>
            <%end%>
          <%end%>

      <div class="panel panel-entry">
        <div class="panel-heading">
          <div class="col-lg-7 col-md-7 col-xs-7" style="padding-top:5px;">
            <p style="font-size:22px;"><%= p_entry.project_name %></p>
          </div>
          <div class="col-lg-5 col-md-5 col-xs-5" style="padding-top:3px;">
            <%if p_entry.current_state!='accepted'%>
            <div class="col-lg-5 col-md-5 col-xs-5">
               <%if p_entry.current_state=='unscheduled'%>
               <font color='#34495e'> <%= p_entry.current_state%></font>

               <%elsif p_entry.current_state=='unstarted'%>
               <font color='#34495e'> <%= p_entry.current_state%> <i class="icon-cloud-download" style="color:#34495e;"></i></font>

               <%elsif p_entry.current_state=='started' or p_entry.current_state=='finished'%>
               <font color='#1abc9c'> <%= p_entry.current_state%> <i class="icon-edit" style="color:#1abc9c;"></i></font>

               <%elsif p_entry.current_state=='rejected'%>
               <font color='#e74c3c'> <%= p_entry.current_state%> <i class="icon-exclamation-sign" style="color:#e74c3c;"></i></font>
               <%else%>
                  <%= p_entry.current_state%> 
                <%end%>

                </div>
                <div class="col-lg-7 col-md-7 col-xs-7">
                  <% if p_entry.status== -1 %>

                    <p style="color:red;" class="pull-right">can not get process</p>
                    
                    <img src="/assets/done.png" class="img" style="margin-top:-10px;display:none;"/>
                  <% else %>
                  <div class="progress" style="width:130%;">
                    <div class="progress-bar progress-bar-<%=@stat%>" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: <%= p_entry.status %>%;">
                    <p style="font-size:1vw;margin-top:-2px;"><%= p_entry.status %>% </p>
                    </div>
                  </div>
                  <%end%>
                  </div>
            <%else%>
              <font color='#2ecc71' class="pull-right"> <%= p_entry.current_state%> <i class="icon-check" style="color:#2ecc71;"></i></font>
            <%end%>
          
             
            </div>

        </div>
        <div class="panel-body">
            <div class="col-lg-6 col-md-6 col-xs-6">
              <p style="font-size:16px;line-height:25px;">
                <span class='label label-default'>
                  <% if p_entry.story_type=='feature' %>
                    <i class="icon-star-empty" ></i>
                  <% elsif p_entry.story_type=='bug'%>
                    <i class="icon-wrench" ></i>
                  <% elsif p_entry.story_type=='chore'%>
                    <i class="icon-cog" ></i>
                  <% elsif p_entry.story_type=='release'%>
                    <i class="icon-flag" ></i>  
                  <%end%>
                  <%= p_entry.story_type %> 
              </span>
              &nbsp
              <%= p_entry.story_name %> &nbsp
              
              </p>
            </div>
               
             <div class="col-lg-6 col-md-6 col-xs-6">
                <%if p_entry.done !=nil%>

                <p style="font-size:12px;" class="pull-right">CostTime:<font color=red><%=p_entry.done.time_cost%></font>&nbsp&nbsp
                  Code+:&nbsp<font color=red><%=p_entry.done.code_addition%></font>&nbsp&nbsp
                  Code-:&nbsp<font color=red><%=p_entry.done.code_deletion%></font>&nbsp&nbsp
                  </p>
                <%end%>
                 
             </div>   

        </div>
        <div class="panel-footer">



          <a href="#" data-toggle="modal" title="<%= p_entry.project_name%>-<%= p_entry.story_name%>" data-target="#myModal<%=p_entry.story_id%>">
          <span class="pull-left" ><i class="fui-search"> </i>View Descrpition </span>
          </a>


          <!-- Modal -->
          <div class="modal fade" id="myModal<%=p_entry.story_id%>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color:transparent;">
            <div class="modal-dialog">
              <div class="modal-content">
                <div class="modal-header" align='left'>
                 
                  <h4 class="modal-title" id="myModalLabel"><strong><%= p_entry.project_name%></strong> | <%= p_entry.story_name%></h4>
                </div>
                <div class="modal-body" align='left' style="font-size: 1.2vw">
                  <%= p_entry.story_description %>

                </div>
                <div class="modal-footer">
                  <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                </div>
              </div>
            </div>
          </div>

          

            <a href="<%= p_entry.url%>" target="_blank">

            <span class="pull-left" > &nbsp
            <i class="fui-eye" ></i>&nbspOpen in Pivotal Tracker
            </span>
          </a>

             <!--    <%= link_to t('.edit', :default => t("helpers.links.edit")),edit_p_entry_path(p_entry), :class => 'pull-right glyphicon glyphicon-edit' , :style =>'hover{background:transparent;display:block;}' %>
                &nbsp
                
                <%= link_to t('.destroy', :default => t("helpers.links.destroy")),
                      p_entry_path(p_entry),
                      :method => :delete,
                      :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
                      :class => 'pull-right glyphicon glyphicon-trash',
                      :style => 'padding-right:15px;'%> -->
            <div class="clearfix"></div>
        </div>
      </div>
      <!-- /.col-lg-4 -->
      </div>
    <%end%>


